package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserWork;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 履历信息表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserWork对象", description="履历信息表")
public class UserWorkVO extends BaseVO<UserWork> {
    private static final long serialVersionUID = 1L;


    public UserWorkVO(UserWork entity){
        this.userWorkId = entity.getUserWorkId();
        this.userId = entity.getUserId();
        this.startDate = entity.getStartDate();
        this.endDate = entity.getEndDate();
        this.workUnit = entity.getWorkUnit();
        this.deptName = entity.getDeptName();
        this.duty = entity.getDuty();
        this.majorDuty = entity.getMajorDuty();
        this.majorPerformance = entity.getMajorPerformance();
        this.voucher = entity.getVoucher();
        this.voucherPhone = entity.getVoucherPhone();
        this.leaveReason = entity.getLeaveReason();
        this.backCheck = entity.getBackCheck();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserWork convertToEntity(){
        return new UserWork(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userWorkId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "履历开始时间")
    private String startDate;

    @ApiModelProperty(value = "履历结束时间")
    private String endDate;

    @ApiModelProperty(value = "工作单位")
    private String workUnit;

    @ApiModelProperty(value = "所在科室")
    private String deptName;

    @ApiModelProperty(value = "职务")
    private String duty;

    @ApiModelProperty(value = "主要职责")
    private String majorDuty;

    @ApiModelProperty(value = "主要业绩")
    private String majorPerformance;

    @ApiModelProperty(value = "证明人")
    private String voucher;

    @ApiModelProperty(value = "证明人电话")
    private String voucherPhone;

    @ApiModelProperty(value = "离职原因")
    private String leaveReason;

    @ApiModelProperty(value = "背景调查")
    private String backCheck;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态（0：不通过，1：通过）")
    private Integer state;
}
